//
//  LYCMainShowViewController.m
//  SMLQuickCure
//
//  Created by 廖易诚 on 16/4/1.
//  Copyright © 2016年 itcast. All rights reserved.
//

#import "LYCMainShowViewController.h"

@interface LYCMainShowViewController ()

@end

@implementation LYCMainShowViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    // 设置标题
    self.navigationItem.title = @"快医";
    
    // 设置view的背景色
    self.view.backgroundColor = [UIColor whiteColor];
    
    // 设置导航条上左侧的按钮
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"菜单" style:0 target:nil action:nil];
    
    
    // ------------------------
    
    // 设置显示城市和天气的UIView
    UIView *weatherView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, KWIDTH, self.view.bounds.size.height * 0.1)];
    
    // 设置背景颜色
    weatherView.backgroundColor = [UIColor colorWithRed:223/255.0 green:224/255.0 blue:249/255.0 alpha:1];
    
    // 添加到父控件
    [self.view addSubview:weatherView];
    
    // -------------------------
    
    
    UIScrollView *centerScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, self.view.bounds.size.height * 0.1, KWIDTH, self.view.bounds.size.height * 0.3)];
    
    centerScrollView.contentSize = CGSizeMake(KWIDTH * 3, self.view.bounds.size.height * 0.3);
    centerScrollView.backgroundColor = [UIColor greenColor];
    [self.view addSubview:centerScrollView];
    
    // ----------------------
    
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
